<div id="homeRight">
<img src="<?php echo $this->userProfile($this->user); ?>" />

<h1 class="home" style="margin-top:20px;">Books (<a href="<?php echo $this->url(array("controller"=>"user", "action"=>"profilebooks", "uid"=>$this->user->id), "default", true);?>"><?php echo count($this->books);?></a>)</h1>
<ul class="thumbnails">
<?php
 echo $this->bookThumbnailList($this->books,false); ?>
</ul>

</div>
<div id="homeLeft" style="float:right;">
<h1 class="home" style="font-size:40px;line-height:40px;letter-spacing:-2px;"><?php echo $this->user->name;?></h1>
<?php 
$uc = User::checkUserAuthProvider($this->user, AuthProvider::FACEBOOK);
if (!empty($uc)) {
?><a target="_blank" id="fbLink" title="<?php echo $this->user->name;?> has connected with Facebook, isn't he/she more trustworthy? Click to check out!" href="http://www.facebook.com/profile.php?id=<?php echo $uc->auth_uid;?>">
fb</a>
<?php }?>
<?php if ($this->myself) {?><a style="font-size:11px;margin-left:20px;line-height:55px;" href="<?php echo $this->url(array("controller"=>"user", "action"=>"settings"), "default", true);?>">Edit</a><?php }?>
<?php if (!$this->myself) {?><a id="sendMessage" href="<?php echo $this->url(array("controller"=>"message", "action"=>"sendmessage", "uid"=>$this->user->id), "default", true);?>">Send Message</a><?php }?>
<div class="userItems">
	<div class="userItem"><strong>Location</strong> <?php echo $this->userLocation($this->user); ?></div>
	<?php if(!empty($this->user->last_access)) {?><div class="userItem"><strong>Last visit</strong> <?php echo $this->user->last_access; ?></div><?php }?>
	<?php if(!empty($this->user->introduction)) {?><div class="userItem"><strong>About you</strong> <?php 
	echo $this->user->introduction;?></div><?php }?>
</div>

<h1 class="home" style="margin-top:20px;">What's Happening about this person ... </h1>
<ul class="activities">
<?php echo $this->activityList($this->activities); ?>
</ul>
</div>